<template>
	<div>
		<p>Test Component</p>
	</div>
</template>

<script>
	export default {
		'name': 'component-test',
		data() {
			return {};
		},
		created() {
			this.$post('/ESB/ClientCryptoKeyService/GetClientCryptoKey', {
				'CryptoKeyID': 'tc-059'
			}).then(res => {
				console.log(res);
				localStorage.setItem('ClientPrivateKey', res.ClientPrivateKey);
				this.$post('/Lend/PromotionService/GetPromotionByPostionId', {
					'PostionId': '0883ce7b0e37bd746d12fe5a4f2804d2'
				}).then(res => console.log(res));
			});
		}
	};
</script>

<style>
</style>
